package cn.wolfcode.business.service;

import cn.wolfcode.business.domain.BusStatement;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Service
public interface BusinessStatementService {
    List<BusStatement> selectStatementList(BusStatement busStatement);

    BusStatement selectStatementById(Long id);

    int save(BusStatement busStatement);

    int update(BusStatement busStatement);

    int deleteStatementById(Long id);

    void updateAmount(Long statementId, BigDecimal totalAmount, BigDecimal totalQuantity, BigDecimal discountAmount);

    int updatePayStatus(Long statementId, Long payId, Date date, Integer statusPaid);

    Long createStatement(Long id);
}
